

tiao(5000)
function tiao(time) {
    var a = textContains('跳过').findOne(time);
    if (a != null) {
        if (a.clickable()) {
            a.click();
            toastLog("click")
        } else {
            let x = a.bounds().centerX();
            let y = a.bounds().centerY();
            toastLog("clickCenter", x, y)
            click(x, y);
        }
        sleep(1000);
        if (textContains('跳过').findOnce() != null) {
            tiao(2000)
        }
    }
}